package com.chinapost.action;

import org.apache.struts2.convention.annotation.Action;
import org.apache.struts2.convention.annotation.Namespace;
import org.apache.struts2.convention.annotation.Result;
import org.springframework.beans.factory.annotation.Autowired;

import com.chinapost.service.DqobkServiceI;
import com.chinapost.vo.Dqobk;
import com.opensymphony.xwork2.ModelDriven;

@Namespace("/")
@Action(value = "dqobkAction", results = { @Result(name = "dqobkManager", location = "/jsp/dqobk/dqobkManager.jsp") 
	 })
public class DqobkdAction extends BaseAction implements ModelDriven<Dqobk> {

	private DqobkServiceI dqobkService;
	private Dqobk dqobk = new Dqobk();


	public DqobkServiceI getDqobkService() {
		return dqobkService;
	}

	@Autowired
	public void setDqobkService(DqobkServiceI dqobkService) {
		this.dqobkService = dqobkService;
	}

	@Override
	public Dqobk getModel() {
		return dqobk;
	}

	public String dqobkManager() {
		return "dqobkManager";
	}


	public void datagrid() {
		super.writeJsonDate(dqobkService.datagrid(dqobk));
	}

}
